package org.bridge.db.dao;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import junit.framework.TestCase;

public class MySqlSimpleConnectionTest extends TestCase {

	public void testGetConnection() throws SQLException {
//		MySqlSimpleConnection con = new MySqlSimpleConnection();
//		long begin = System.currentTimeMillis();
//		Connection connection =con.getConnection();
//		long end = System.currentTimeMillis();
//		System.out.println("Connesso in "+(end-begin)+" ms.");
//		Statement stmt = connection.createStatement();
//		begin = System.currentTimeMillis();
//		ResultSet rs = stmt.executeQuery("show databases");
//		end = System.currentTimeMillis();
//		System.out.println("Query eseguita in "+(end-begin)+" ms.");
//		while(rs.next()){
//			System.out.println(rs.getString(1));
//		}
//		rs.close();
//		stmt.close();
//		connection.close();
	}

}
